﻿<div ng-controller="logisticsController">
    <div class="wrapper border-bottom white-bg page-heading">
        <div class="col-lg-pull-12">
            <ol class="breadcrumb">
                <li>分板管理</li>
            </ol>
        </div>
    </div>

    <form class="form-horizontal row"></form>
    <table class="table table-hover m-t-md">
        <thead>
            <tr style="background-color: #f7f7f9;">

                <th>板名称</th>
                <th>板单号</th>
                <th>航班号</th>
                <th>长</th>
                <th>宽</th>
                <th>高</th>
                <th>状态</th>
                <th>创建时间</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody ng-repeat="item in model.rows">

            <tr>
                <td>{{item.board_name}}</td>
                <td>{{item.board_no}}</td>
                <td>{{item.flightno}}</td>
                <td>{{item.length}}</td>
                <td>{{item.width}}</td>
                <td>{{item.high}}</td>
                <td>{{status_name(item.statuss)}}</td>
                <td>{{item.create_time}}</td>
                <td>
                    <a class="btn btn-primary btn-xs" ng-if="item.statuss==3" ui-sref="app.logistics.finishdeclare({id:{{item.id}}})"><i class="fa fa-cog"></i> 运单航班</a>
                    <a class="btn btn-primary btn-xs" ng-if="item.statuss==4" ui-sref="app.logistics.startflight({id:{{item.id}}})"><i class="fa fa-cog"></i> 到达目的港</a>
                    <a class="btn btn-primary btn-xs" ng-if="item.statuss==6" ng-click="update(item.id,'7')"><i class="fa fa-cog"></i> 清关</a>
                    <a class="btn btn-primary btn-xs" ng-if="item.statuss==7" ng-click="update(item.id,'8')"><i class="fa fa-cog"></i> 清关完成开始配送</a>
                    <a class="btn btn-primary btn-xs" ng-if="item.statuss==8" ng-click="update(item.id,'9')"><i class="fa fa-cog"></i> 国内物流</a>
                    <a class="btn btn-primary btn-xs"  ui-sref="app.logistics.detail({id:{{item.id}}})"><i class="fa fa-cog"></i> 物流跟踪</a>
                </td>


            </tr>
        </tbody>
    </table>
    <div class="row">
        <div class="col-md-12">
            <uib-pagination total-items="model.total_result" items-per-page="model.size" ng-model="model.page" num-pages="model.total_pages"
                            ng-change="searchplate_page(model.page)" class="pagination-sm" boundary-links="true" boundary-link-numbers="true" max-size="20"
                            previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></uib-pagination>
            <span class="pull-right" style="margin: 30px 0px 20px 0px">共{{model.total_result}} 当前：{{model.page}}/{{model.total_pages}}</span>
        </div>
    </div>
</div>
